<?php
include(JPATH_ROOT . '/components/com_browserempire/blog.php');

class BloxTest extends PHPUnit_Framework_TestCase
{
	public function testPostCount()
	{
		$blog = new Blog();
		$this->assertEquals(0, $blog->getPostCount());
	}

	public function testAddPost()
	{
		$blog = new Blog();
		$blog->addPost(array(
			'title' => 'Mein erster Blog Post',
			'body' => 'Lorem ipsum dolor sit amet.',
		));
		$blog->addPost(array(
			'title' => 'PHPUnit Einführung',
			'body' => 'WebUnion präsentiert eine Einführung in PHPUnit.',
		));

		$this->assertEquals(2, $blog->getPostCount());
	}

	public function testAbc()
	{
		$this->assertEquals(2, 3);
	}
}
?>